package cn.sise.edu.crm.service;

import cn.sise.edu.crm.domain.Employee;
import cn.sise.edu.crm.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

/**
 * Created by chen on 2019/11/3.
 */
public interface IEmployeeService {
    void insert(Employee employee,Long[] los);
    void delete(Long id);
    void update(Employee employee, Long[] los);
    Employee selectById(Long id);
    List<Employee> selectAll();
    PageInfo query(QueryObject queryObject);
    Employee login(String name, String password);

    void deleteByEmployeeIds(Long[] ids);

    Employee selectByUsename(String username);

    Workbook export();

    void imports(InputStream inputStream) throws Exception;

    Workbook temp();

    List<Employee> queryByRoleSn(String[] strings);
}
